<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<header>
    <div class="header-top">
        <div class="width-center">
            <div class="header-logo "><img src="${company.logo }" alt=""></div>
            <div class="header-title div-inline">
                <strong>${company.name }</strong>
                <span>${company.url }</span>
            </div>

            <form action="ProductServlet?reqName=productSelect&id=0&pageNo=1" method="post" class="search-box div-inline">
                <input class="input-box" type="text" name="name" placeholder="             请输入关键字">
                <button class="search-botton" type="submit"></button>
            </form>
        </div>
    </div>
    <div class="header-nav">
        <button class="am-show-sm-only am-collapsed font f-btn" data-am-collapse="{target: '.header-nav'}">Menu <i
                class="am-icon-bars"></i></button>
        <nav>
        <ul class="header-nav-ul am-collapse am-in">
            <li class="on"><a href="HomeServlet?reqName=homeSelect" name="index">首页</a></li>
            <li><a href="companyServlet?reqName=companySelect" name="about">关于我们</a></li>
            <li><a href="ProductServlet?reqName=productSelect&id=0&pageNo=1" name="show">产品展示</a></li>
            <li><a href="NewsServlet?reqName=newsSelect&id=0&pageNo=1" name="new">新闻资讯</a></li>
            <li><a href="contact.jsp" name="message">联系我们</a>
                <div class="secondary-menu">

                    <ul><li><a href="message.jsp" class="message"></a></li></ul>
                </div>
            </li>
            <li><a href="http://localhost:8080/XXX/admin/admin.jsp" name="admin">后台</a></li>
        </ul>




        </nav>
    </div>

</header>
<div class="am-slider am-slider-default" data-am-flexslider="{playAfterPaused: 8000}">
    <ul class="am-slides">
    <c:choose>
    <c:when test="${empty banner }"></c:when>
    <c:otherwise>
        <c:forEach items="${banner }" var="u">
        <li><img src="${u.bannerImg }" alt="${u.bannerTitle }" ></li>
        </c:forEach>
    </c:otherwise>
    </c:choose>
    </ul>
</div>
</body>
</html>